package com.emex.app.web;

import com.emex.app.shared.data.CompanyInfo;
import com.emex.app.shared.data.Numbers;
import com.emex.app.shared.ws.CompanyInfoWebService;
import com.emex.app.web.service.CompanyInfoService;
import javax.ejb.Stateless;
import javax.jws.WebService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.context.support.SpringBeanAutowiringSupport;

/**
 *
 * @author Sergey Karavaev
 */
@WebService(serviceName = "CompanyInfoWS", portName = "CompanyInfoWSPort", targetNamespace = "http://emex.com/CompanyInfo")
@Stateless(name = "CompanyInfoWS")
public class CompanyInfoWS extends SpringBeanAutowiringSupport implements CompanyInfoWebService {
    
    @Autowired
    private CompanyInfoService companyInfoService;

    @Override
    public CompanyInfo insertCompanyInfo(CompanyInfo record) {
        return companyInfoService.insertCompanyInfo(record);
    }

    @Override
    public CompanyInfo getCompanyInfo() {
        return companyInfoService.getCompanyInfo();
    }

    @Override
    public CompanyInfo updateCompanyInfo(CompanyInfo record) {
        return companyInfoService.updateCompanyInfo(record);
    }

    @Override
    public Numbers insertNumbers(Numbers record) {
        return companyInfoService.insertNumbers(record);
    }

    @Override
    public Numbers getNumbers() {
        return companyInfoService.getNumbers();
    }

    @Override
    public Numbers updateNumbers(Numbers record) {
        return companyInfoService.updateNumbers(record);
    }

}
